home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
qbtools1.arc
/
AEGETSNG.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-01-11
|
768b
|
25 lines
rem $linesize:132
rem $title:'Application Engineer Standard Routines'
rem $subtitle:'Get a single key depression and code type'
' Get.Single
' Sub Routine to wait until a key is pressed
' Two values are returned, first is the character code, and second is
' the character type.
' Include the COMMON values
rem $include:'AESHARED.BAS'
sub Get.Single ( ccode% , ctyp% ) static
ctyp%=0%
while ctyp%=0%
single.press$=""
call qprint(date$,1,1)
while single.press$=""
single.press$=inkey$
call qprint(time$,1,70)
wend
call qprint(date$,1,1)
ctyp%=len(single.press$)
ccode%=asc(mid$(single.press$,ctyp%))
wend
end sub